    <!-- #section:basics/navbar.layout -->
    <div id="navbar" class="navbar navbar-default">
        <script type="text/javascript">
            try {
                ace.settings.check('navbar', 'fixed')
            } catch (e) {
            }
        </script>

        <div class="navbar-container" id="navbar-container">
            <!-- #section:basics/sidebar.mobile.toggle -->
            <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
                <span class="sr-only">Toggle sidebar</span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>
            </button>

            <!-- /section:basics/sidebar.mobile.toggle -->
            <div class="navbar-header pull-left">
                <!-- #section:basics/navbar.layout.brand -->
                <a href="{:U('index/index')}" class="navbar-brand">
                    <small>
                        <i class="fa fa-home"></i>
                        {$Think.CONFIG.sitename}
                    </small>
                </a>

                <!-- /section:basics/navbar.layout.brand -->

                <!-- #section:basics/navbar.toggle -->

                <!-- /section:basics/navbar.toggle -->
            </div>

            <!-- #section:basics/navbar.dropdown -->
            <div class="navbar-buttons navbar-header pull-right" role="navigation">
                <ul class="nav ace-nav">
                    <!-- #section:basics/navbar.user_menu -->
                    <li class="red">
                        <a href="{:U('cache/clear')}" title="清除缓存" target="_self">
                            <i class="ace-icon fa glyphicon-trash"></i>
                        </a>
                    </li>
                    <li class="red">
                        <a href="/" title="前台首页" target="_blank">
                            <i class="ace-icon fa fa-home"></i>
                        </a>
                    </li>
                    <li class="purple dropdown-modal">
						<a data-toggle="dropdown" class="dropdown-toggle" href="#" aria-expanded="false">
							<i class="ace-icon fa fa-bell"></i>
							<span class="badge badge-important"><b id="total_tip_1">{$total_count}</b></span>
						</a>
					<ul class="dropdown-menu-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
						<li class="dropdown-header">
							<i class="ace-icon fa fa-exclamation-triangle"></i>
								<b id="total_tip_2">{$total_count}</b> 条待处理消息提醒
						</li>
						<li class="dropdown-content ace-scroll" style="position: relative;">
							<div class="scroll-track" style="display: none;">
								<div class="scroll-bar"></div>
							</div>
							<div class="scroll-content" style="">
								<ul class="dropdown-menu dropdown-navbar navbar-pink">
									<li>
										<a href="{:U('Task/index',array('pay_status'=>2))}">
											<div class="clearfix">
												<span class="pull-left">
														新发布任务待审核
												</span>
												<span class="pull-right badge badge-info">+<b id="task_tip">{$task_count}</b></span>
											</div>
										</a>
									</li>
									<li>
										<a href="{:U('Usertask/index',array('status'=>1))}">
										<div class="clearfix">
											<span class="pull-left">
											
												任务接单待审核
											</span>	
											<span class="pull-right badge badge-info">+<b id="user_task_tip">{$user_task_count}</b></span>
										</div>	
										</a>
									</li>
									<li>
										<a href="{:U('Order/index',array('status'=>1))}">
										<div class="clearfix">
											<span class="pull-left">
											
												会员收益待审核
											</span>	
											<span class="pull-right badge badge-info">+<b id="user_level_tip">{$user_level_count}</b></span>
										</div>	
										</a>
									</li>
									<li>
										<a href="{:U('Tixian/index',array('status'=>1))}">
										<div class="clearfix">
											<span class="pull-left">
												用户提现待审核
											</span>	
											<span class="pull-right badge badge-info">+<b id="tixian_tip">{$tixian_count}</b></span>
										</div>	
										</a>
									</li>
								</ul>
							</div>
						</li>
						<li class="dropdown-footer">
							<a href="javasvript:;">
								
							</a>
						</li>
					</ul>
					</li>
                    <li class="light-blue">
                        <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                            <img class="nav-user-photo" src="<if condition=" $user.head eq ''">__PUBLIC__/qwadmin/avatars/avatar2.png
                            <else/>{$user.head}</if>" alt="{$user.user}" />
                            <span class="user-info">
                                <small>欢迎光临，</small>
                                {$user.user}
                            </span>

                            <i class="ace-icon fa fa-caret-down"></i>
                        </a>

                        <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                            <li>
                                <a href="{:U('Setting/Setting')}">
                                    <i class="ace-icon fa fa-cog"></i>
                                    设置
                                </a>
                            </li>

                            <li>
                                <a href="{:U('Personal/profile')}">
                                    <i class="ace-icon fa fa-user"></i>
                                    个人资料
                                </a>
                            </li>

                            <li class="divider"></li>

                            <li>
                                <a href="{:U('logout/index')}">
                                    <i class="ace-icon fa fa-power-off"></i>
                                    退出
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- /section:basics/navbar.user_menu -->
                </ul>
            </div>

            <!-- /section:basics/navbar.dropdown -->
        </div><!-- /.navbar-container -->
    </div>
	<script type="text/javascript">
	$(function(){
		window.setInterval("updateNotice()",3000);
	});	
	function updateNotice(){
		$.ajax({
            type : "post",
            url : "{:U('Notice/update')}",
            data: {},
            dataType : "json",
            async: true, 
            success: function(data) {
                r = eval(data);
                $("#total_tip_1").text(r.total_count);
                $("#total_tip_2").text(r.total_count);
                $("#task_tip").text(r.task_count);
                $("#user_task_tip").text(r.user_task_count);
                $("#user_level_tip").text(r.user_level_count);
                $("#tixian_tip").text(r.tixian_count);
            }
      	});  
	}
	</script>	
    <!-- /section:basics/navbar.layout -->